import { BarsOutlined } from '@ant-design/icons';

let routeConfig = {
    Pc:[
        {
            path: window.base.config.path+'index',
            redirect: window.base.config.path,
            meta: {
                title:'定向页',
                hideMenu: false,//看不到此导航
            }
        },
        {
            path: window.base.config.path,
            meta: {
                title:'主路由',
                icon:<BarsOutlined />,
                hideMenu: true,
            },
            component:() => import('@/components/pageLayout/Pc'),
            children:[//子路由
                {
                    path: window.base.config.path,
                    component: () => import('@/views/Pc/index'),
                    meta: {
                        title:'首页',
                        icon:<BarsOutlined />,
                        hideMenu: true,
                    }
                },
                {
                    path: 'test',
                    component:() => import('@/views/Pc/test/test'),
                    meta: {
                        title:'test',
                        noLogin: true,//未登录拦截
                        accessId: '10002', //会员是否有权访问
                        hideMenu: true,
                        icon:<BarsOutlined />
                    }
                },
                {
                    path: 'test1',
                    component: () => import('@/views/Pc/test1/test'),
                    meta: {
                        title:'test1',
                        noLogin: true,//未登录拦截
                        accessId: '10002', //会员是否有权访问
                        hideMenu: true,
                        icon:<BarsOutlined />
                    }
                },
                {
                    path: 'personal',
                    component:() => import('@/views/Pc/login/personal'),
                    meta:{
                        title:'personal',
                        noLogin: true,
                        accessId: '10009',
                        hideMenu: true,
                        icon:<BarsOutlined />
                    }
                },
                {
                    path: 'nest',
                    meta: {
                        title:'一级多级菜单',
                        icon: <BarsOutlined />,
                        hideMenu: true,
                    },
                    children:[
                        {
                            path:'nest1',
                            meta:{
                                title:'二级菜单1',
                                icon:<BarsOutlined />,
                                hideMenu: true,
                            },
                            children: [
                                {
                                    path: 'nest11',
                                    component:() => import('@/views/Pc/nest/nest1/nest1'),
                                    meta:{
                                        title:'三级菜单111',
                                        icon:<BarsOutlined />,
                                        hideMenu: true,
                                    }
                                }
                            ],
                        },
                        {
                            path:'nest2',
                            component:() => import('@/views/Pc/nest/nest2/nest2'),
                            meta:{
                                title:'二级菜单2',
                                icon:<BarsOutlined />,
                                hideMenu: false,
                            }
                        }
                    ]
                },
            ]
        },
        {
            path: window.base.config.path+'login',
            component: () => import('@/views/Pc/login/logo'),
            meta: {
                title: '登录',
                noLogin: false,
                accessId: '1000119',
                hideMenu: true,
                icon:<BarsOutlined />
            },
        },
        {
            path:window.base.config.path+'*',
            component: () => import('@/views/Pc/errorPage/page_404'),
            meta: {
                title: '404',
                noLogin: false,
                hideMenu: false,
            },
        }
    ],
    Mobile:[
        {
            path: window.base.config.path+'index',
            redirect: window.base.config.path,
        },
        {
            path: window.base.config.path,
            component: () => import('@/components/pageLayout/Mobile'),
            children:[//子路由
                {
                    path: window.base.config.path,
                    component: () => import('@/views/Mobile/index'),
                },
                {
                    path: 'test',
                    component: () => import('@/views/Mobile/test/test'),
                },
            ]
        }
    ]
};


export default routeConfig;